﻿Imports MongoDB.Bson

Public Class User

    Public Property _id As ObjectID
    Public Property Email As String = ""
    Public Property Password As String = ""
    Public Property FacebookID As String = ""
    Public Property FullName As String = ""
    Public Property NickName As String = ""
    Public Property JoinDate As Date = "1/1/1900"
    Public Property InvitedBy As String = ""
    Public Property AllowEmailNotifications As Boolean = True
    Public Property AllowPhoneNotifications As Boolean = False
    Public Property AllowFacebookNotifications As Boolean = False
    Public Property IsAdmin As Boolean = False
    Public Property Active As Boolean = True

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class

Public Class Map

    Public Property _id As ObjectID
    Public Property Name As String = ""
    Public Property FileName As String = ""
    Public Property Description As String = ""
    Public Property MaxUsers As Integer = modShared.mintDefaultMaxMapPlayers
    Public Property BonusDivider As Integer = modShared.mintDefaultMapBonusDivider

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class

Public Class Territory

    Public Property _id As ObjectID
    Public Property SVGID As String = ""
    Public Property Map_id As ObjectId
    Public Property Name As String = ""
    Public Property MaxUnits As Integer = 0

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class

Public Class TerritoryTerritoryXREF

    Public Property _id As ObjectID
    Public Property FromTerritory_id As ObjectId
    Public Property ToTerritory_id As ObjectId

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class

Public Class MapGroup

    Public Property _id As ObjectId
    Public Property Map_id As ObjectId
    Public Property Name As String = ""
    Public Property Bonus As Integer = 0

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class

Public Class MapGroupTerritoryXREF

    Public Property _id As ObjectId
    Public Property MapGroup_id As ObjectId
    Public Property Territory_id As ObjectId

    Public Sub New()
        _id = New ObjectId()
    End Sub

End Class



